<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="../css/base2.css" />
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title" id="title">我的消息</h1>
			<span id="iconRight"><a id="btnAdd" class="mui-icon mui-icon-plus mui-pull-right" style="color: #fff;"></a></span>
		</header>
		<div class="mui-content"></div>
	</body>
	<script src="../js/mui.min.js"></script>
	<script src="../js/wf.js"></script>
	<script src="../js/zepto.min.js"></script>
	<script type="text/javascript">
		//启用双击监听
		(function(doc) {
			mui.plusReady(function() {
				var self = plus.webview.currentWebview();
				var username = self.username;
				var value = self.value;
				mui.init({
					gestureConfig: {
						doubletap: true
					},
					subpages: [{
						url: 'noticelistsub.html',
						id: 'noticelistsub',
						extras: {
							username: username,
							value: value
						},
						styles: {
							top: '45px',
							bottom: '0px',
						}
					}]
				});

				$("#btnAdd").on("tap", function() {
					mui.openWindow({
						url: 'noticeadd.html',
						id: 'noticeadd',
						extras: {
							username: username,
							value: value
						}

					});
				});
			});
		}(document));
		var contentWebview = null;
		document.querySelector('header').addEventListener('doubletap', function() {
			if(contentWebview == null) {
				contentWebview = plus.webview.currentWebview().children()[0];
			}
			contentWebview.evalJS("mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)");
		});
	</script>
</html>